-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support location message type #88
base: master
Are you sure you want to change the base?
Support location message type #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, but I found some small nits. Thank you for working on this!
if (obj.find("xyz.amorgan.blurhash") != obj.end()) | ||
info.blurhash = obj.at("xyz.amorgan.blurhash").get<std::string>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is wrong. I think only the thumbnail has a blurhash.
{ | ||
if (!info.thumbnail_url.empty()) { | ||
obj["thumbnail_url"] = info.thumbnail_url; | ||
obj["thumbnail_info"] = info.thumbnail_info; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be serialized when a thumbnail_url or a thumbnail_file is present.
if (!info.blurhash.empty()) | ||
obj["xyz.amorgan.blurhash"] = info.blurhash; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also not existing, afaik)
// events::RoomEvent<events::msg::Location> location = e; | ||
// container.emplace_back(location); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can delete these.
events::RoomEvent<events::msg::Location> location = e; | ||
container.emplace_back(location); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you write that in the style of the lines above, i.e.:
events::RoomEvent<events::msg::Location> location = e; | |
container.emplace_back(location); | |
container.emplace_back(events::RoomEvent<events::msg::Location>(e)); |
@hamzehnasajpour: ping! Are you still planning to finish this? :) |
Unfortunately I was so busy and couldn't update and finish it. Is it possible to fix it by you or someone else? |
Somebody should be able to pick it up. Thank you for providing the initial implementation! |
#87